package gouhuo.allbugs.top.constant;

public interface RedisConstants {

    //盐值，混淆密码
    String SALT = "gouhuo";

    //DES的密钥
    String DES_KEY = "sgEsnN6QWq8W7j5H01020304";

    //验证码
    String LOGIN_CODE_KEY = "user:login:user";
    Long LOGIN_CODE_TTL = 1L;

    //用户登录信息
    String LOGIN_USER_KEY = "user:msg:";
    Long LOGIN_USER_TTL = 60L;

    //用户在线状态
    String LOGIN_ONLINE_KEY = "user:onLine";

    //用户列表普通/定时任务
    String USER_LIST_KEY = "user:list";
    Long USER_LIST_TTL = 60L;
    Long USER_LIST_TTL_ = 180L;

    //访客信息简单/完整
    String VISITOR_SET_SIMPLE_KEY = "visitor:simple:user";
    String VISITOR_SET_FULL_KEY = "visitor:full:user";
    Long VISITOR_SET_FULL_TTL = 7L;

    //好友申请信息
    String FRIENDS_MSG_KEY = "friends:msg:user";

    //信息通知列表
    String CHAT_MSG_KET = "chat:user";

    //好友信息
    String FRIENDS_LIST_KEY = "friends:list:user";
    Long FRIENDS_LIST_TTL = 30L;

    //聊天记录
    String CHAT_LIST_KEY = "chat";
    Long CHAT_LIST_TTL = 48L;

}
